﻿<%@ Page Language="C#" MasterPageFile="~/Users/Users.Master" AutoEventWireup="true" CodeBehind="EditSupportingMaterial.aspx.cs" Inherits="Pantry.Web.Users.EditSupportingMaterial" Title="Supporting Metarials Detailt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="Resources/js/DataTables/jquery.dataTables.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    	function validate() {
    		if (document.getElementById("<%=TextBoxUrlEdit.ClientID%>").value == "") {
    			showmessage('Please input Url !', 'ERROR', '', 'false');
    			document.getElementById("<%=TextBoxUrlEdit.ClientID%>").focus();
    			return false;
    		}
    		return true;
    	}
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:PostBackTrigger ControlID="ButtonCreateMaterial"/>
            <asp:PostBackTrigger ControlID="ButtonBackEditMaterial"/>
        </Triggers>
        <ContentTemplate>
            <div class="widget_header">
                <h4 class="widget_header_title wwIcon i_16_icons">
                    Supporting Materials Detailt</h4>
                <div class="top-nav">
                    <asp:Button ID="ButtonInActive" runat="server" Text="In-active" CssClass="buttontop" OnClick="ButtonInActiveClick"
                        OnClientClick="return confirm('Do you want to in-active this Supporting Material ?')" />
                    <asp:Button ID="ButtonCreateMaterial" CssClass="submitIt buttontop" runat="server" Text="Save" ValidationGroup="CreateGroup" OnClick="SaveSupportClick" OnClientClick="return validate();" />
                    <asp:Button ID="ButtonBackEditMaterial" CssClass="submitIt buttontop" runat="server" Text="Back" OnClick="BackListOriganisationClick" />
                </div>
            </div>
            <div class="widget_contents_tienvn" id="content_tienvn">
                <table width="100%" border="0" cellpadding="5">
                    <tr>
                        <td class="AlignTd">
                            <span class="label">URL</span>&nbsp; <span style="color: red">*</span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="TextBoxUrlEdit" CssClass="Duongnt8TextBox" />
                        </td>
                        <td class="AlignTd">
                            <span class="label">Added By</span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="TextBoxAddedByEdit" CssClass="Duongnt8TextBox" ValidationGroup="CreateGroup"
                                Enabled="False" />
                        </td>
                    </tr>
                    <tr>
                        <td class="AlignTd" valign="top">
                            <span class="label">Description</span>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="TextBoxDescriptionEdit" CssClass="Duongnt8TextArea" TextMode="MultiLine"
                                ValidationGroup="CreateGroup" />
                        </td>
                        <td class="AlignTd" valign="top">
                            <span class="label">Added Date</span>
                        </td>
                        <td valign="top">
                            <asp:TextBox runat="server" ID="TextBoxAddedDateEdit" CssClass="Duongnt8TextBox pick_date"
                                ValidationGroup="CreateGroup" Enabled="False" />
                        </td>
                    </tr>
                    <tr>
                        <td class="AlignTd">
                            <span class="label">Type</span>
                        </td>
                        <td>
                            <asp:DropDownList CssClass="simple_form" runat="server" ID="DropDownListTypeEdit"
                                ValidationGroup="CreateGroup" >
                                <asp:ListItem Value="doc" >Doc</asp:ListItem>
                                <asp:ListItem Value="pdf">PDF</asp:ListItem>
                                <asp:ListItem Value="excel">Excel</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                <div class="clear"></div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
